<?php

/**
 * Language
 * 
 * @package ObbyCMS 2.0
 * @author Christopher Hazekamp
 * @copyright 2012
 * @version v2.0.0
 * @access public
 */

if (!defined('PUBLIC_HTML'))
{
	exit;
}

class Language
{
	public $active;
	public $default;
	public $content;
	
	/**
	 * Language::__construct()
	 * 
	 * @param mixed $language
	 * @param string $default
	 * @return
	 */
	function __construct ($language, $default = 'en')
	{
		$this->active	= (string) $language;
		$this->default	= (string) $default;
		
		include(PATH_PHP . 'language/' . $this->active . EXT_PHP);
		$this->content = $lc;
	}
	
	/**
	 * Language::text()
	 * 
	 * @param mixed $value
	 * @return
	 */
	public function text ($value)
	{
		return $this->content[$value];
	}
	
	
	/**
	 * Language::current()
	 * 
	 * @return
	 */
	public function current()
	{
		return $this->active;
	}
}

?>